package org.groupg.practice.guiPractice.awt;

import java.util.StringJoiner;

public class Person {
        String name;
        Integer age;

        public Person(String name ,Integer age){
            this.name = name;
            this.age = age;
        }

    @Override
    public String toString() {
        return new StringJoiner(", ", Person.class.getSimpleName() + "[", "]")
                .add("name='" + name + "'")
                .add("age=" + age)
                .toString();
    }
}
